# ${item.getLogicName()}(${item.getCodeName()}) :id=${item.getCodeName()}
<% if(item.getMemo()){ %>\

${item.getMemo()}
<%}%>\
<%
String strPath = "/" + cn.ibizlab.codegen.groovy.util.Inflector.getInstance().pluralize(item.getCodeName()).toLowerCase();
if (item.getPSSubSysServiceAPIDEMethods()) {
  item.getPSSubSysServiceAPIDEMethods().each{ method ->
  if ( method.getMethodType() == 'DEACTION' || method.getMethodType() == 'FETCH') {
  %>\
## ${method.getName()}

<el-row>
<div style="width: 80px">
<el-alert center title="${method.getRequestMethod()}" <%
if(method.getRequestMethod() == 'GET'){
    out << 'type="success"'
}
if(method.getRequestMethod() == 'POST'){
    out << 'style="background-color: rgba(52, 143, 228, 0.1);color: #348fe4;"'
}
if(method.getRequestMethod() == 'PUT'){
    out << 'type="warning"'
}
if(method.getRequestMethod() == 'DELETE'){
    out << 'type="error"'
}
%> :closable="false" ></el-alert>
</div>
<div style="margin-left:5px;width: calc(100% - 85px)">
<el-alert title="<%out.print(strPath)%><%= method.isNeedResourceKey() ? "/{key}" : "" %><%= method.getRequestPath() ? method.getRequestPath() : "" %>" type="info" :closable="false" ></el-alert>
</div>
</el-row>
<% if(method.getMemo()){ %>\
${method.getMemo()}
<%}%>\
<%if(method.isNeedResourceKey()){%>
##### 路径参数 {docsify-ignore}
|字段col300|类型col150|备注col400|
|---|---|----|
|key|String|主键|
<%}%>
<%if(method.getPSSubSysServiceAPIMethodInput().getType() == 'DTO' || method.getPSSubSysServiceAPIMethodInput().getType() == 'DTOS'){%>

##### 请求参数 {docsify-ignore}
|字段col300|类型col150|备注col400|
|---|---|----|
<% if (method.getPSSubSysServiceAPIMethodInput().getPSSubSysServiceAPIDTO().getPSSubSysServiceAPIDTOFields()) {
  method.getPSSubSysServiceAPIMethodInput().getPSSubSysServiceAPIDTO().getPSSubSysServiceAPIDTOFields().eachWithIndex{ field,index -> %>\
|${field.getName().toLowerCase()}|<%=cn.ibizlab.codegen.groovy.util.JavaTypeUtil.getJavaType(field.getStdDataType())%>|${field.getName()}|
<% }} %>
<%}%>
<%if(method.getPSSubSysServiceAPIMethodInput().getType() == 'DTO' || method.getPSSubSysServiceAPIMethodInput().getType() == 'DTOS'){%>\

##### 请求示例： {docsify-ignore}
```json
{
<% if (method.getPSSubSysServiceAPIMethodReturn().getType() == 'PAGE' || (method.getPSSubSysServiceAPIMethodInput().getPSSubSysServiceAPIDTO() && method.getPSSubSysServiceAPIMethodInput().getPSSubSysServiceAPIDTO().getType() == 'DEFILTER')) { %>\
  "page" : 0,
  "size" : 20,
  "sort" : null,
<% } %>\
<% if (method.getPSSubSysServiceAPIMethodInput().getPSSubSysServiceAPIDTO() && method.getPSSubSysServiceAPIMethodInput().getPSSubSysServiceAPIDTO().getPSSubSysServiceAPIDTOFields()) {
  method.getPSSubSysServiceAPIMethodInput().getPSSubSysServiceAPIDTO().getPSSubSysServiceAPIDTOFields().eachWithIndex{ field,index -> %>\
  "${field.getName().toLowerCase()}" : null,
<% }} %>\
}
```
<%}%>

<% }} %>
<% } %>

<script>
 const { createApp } = Vue
  createApp({
    data() {
      return {

      }
    },
    methods: {

    }
  }).use(ElementPlus).mount('#app')
</script>